package cn.itsource.domain.org;

import cn.itsource.basic.domain.BaseDomain;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;


import java.util.Date;

@Data
@AllArgsConstructor
@TableName( "t_shop")
public class Shop implements BaseDomain {
    public Shop() {
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String tel;
    //注册时间
    private Date registerTime;
    //1.待审核(默认) ；2.审核通过；3激活；4审核驳回（关闭）
    private Integer state;
    private String address;
    //需要上传的logo
    private String logo;

    private Boolean del;

    public Shop(String s) {
        this.name = s;
    }
}
